package com.situ.pattern.factory;

public abstract class AbstractCal {
    protected Integer num1;
    protected Integer num2;

    public AbstractCal() {
    }

    public AbstractCal(Integer num1, Integer num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    //方法签名
    /*public int getResult() { //方法体
        return 0;
    }*/

    //Abstract method in non-abstract class
    public abstract int getResult();

    public Integer getNum1() {
        return num1;
    }

    public void setNum1(Integer num1) {
        this.num1 = num1;
    }

    public Integer getNum2() {
        return num2;
    }

    public void setNum2(Integer num2) {
        this.num2 = num2;
    }
}
